import easygui as eg
import sys
while 1:
    eg.msgbox('欢迎进入游戏')

    msg = "你想学习什么知识呢？"
    title = "游戏互动"
    choices = ["谈恋爱","编程","玩游戏"]

    choices = eg.choicebox(msg, title, choices)

    eg.msgbox("你的选择是: " + str(choices), "结果")

    msg = "您想重新开始游戏吗?"
    title = "请选择"

    if eg.ccbox(msg, title):
        pass
    else:
        sys.exit(0)